package com.org.manhu.chargehelper.broadcastreceiver;

import com.org.manhu.chargehelper.tools.FileUtil;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.text.TextUtils;
import android.widget.TextView;

/**
 * @文件名：UpdateMoneyReceiver.java
 * @包名：com.org.manhu.chargehelper.broadcastreceiver
 * @作者：李朋辉 @QQ：892839211
 * @创建时间：2015年2月11日 下午5:19:35
 *
 * @描述：用户安装成功后用来改变用户金额的广播
 */
public class UpdateMoneyReceiver extends BroadcastReceiver {

	private TextView moneyTv;

	public UpdateMoneyReceiver(TextView tv) {
		this.moneyTv = tv;
	}

	@Override
	public void onReceive(Context context, Intent intent) {
		// TODO Auto-generated method stub
		String money = intent.getStringExtra("money");
		if(!TextUtils.isEmpty(money)){
			moneyTv.setText(money);
		}
	}

}
